<template>
  <div class="xgybgboxinfo">
    <div class="infotitle">
      <div class="infotitlebox">
        <div class="infotitleicon">
          <slot name="infotitleicon"></slot>
        </div>
        <div class="infotitletext">
          <slot name="infotitletext"></slot>
        </div>
      </div>
      <div class="morebox"
           v-if="ismore">
        <div class="morepoint">
          <div class="point"></div>
          <div class="point"></div>
          <div class="point"></div>
        </div>
        <div class="more">
          更多</div>
      </div>
    </div>

    <div class="infobody">
      <slot name="infobody"></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: "XgyBgBoxInfo",
  props: ["ismore"]
}
</script>

<style lang="less" scoped>
.xgybgboxinfo {
  padding: 1.5rem 1.8rem;
  .infotitle {
    display: flex;
    justify-content: space-between;
    .infotitlebox {
      display: flex;
      margin-left: 1rem;
      padding-right: 1rem;
      border-bottom: 0.1rem solid #74d7e2;
      justify-content: center;
      align-items: flex-end;
      height: 1.25rem;
      .infotitleicon {
        display: flex;
        justify-content: center;
        align-items: flex-end;
      }
      .infotitletext {
        display: flex;
        font-size: 0.9rem;
        color: #fff;
        justify-content: flex-start;
        align-items: flex-end;
      }
    }
    .morebox {
      display: flex;
      justify-content: flex-end;

      align-items: center;
      .morepoint {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        .point {
          width: 0.25rem;
          height: 0.25rem;
          margin-right: 0.25rem;
          border-radius: 50%;
          background-color: #74d7e2;
        }
      }
      .more {
        font-size: 0.6rem;
        color: #fff;
      }
    }
  }
  .infobody {
    margin-top: 1rem;
  }
}
</style>